package cn.stylefeng.guns.modular.replenishment.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.replenishment.entity.ReplenishmentOrder;
import cn.stylefeng.guns.modular.replenishment.model.params.ReplenishmentOrderParam;
import cn.stylefeng.guns.modular.replenishment.model.result.ReplenishmentOrderResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 补货单 服务类
 * </p>
 *
 * @author wp
 * @since 2025-05-26
 */
public interface ReplenishmentOrderService extends IService<ReplenishmentOrder> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-05-26
     */
    void add(ReplenishmentOrderParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-05-26
     */
    void delete(ReplenishmentOrderParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-05-26
     */
    void update(ReplenishmentOrderParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-05-26
     */
    ReplenishmentOrderResult findBySpec(ReplenishmentOrderParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-05-26
     */
    List<ReplenishmentOrderResult> findListBySpec(ReplenishmentOrderParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-05-26
     */
     LayuiPageInfo findPageBySpec(ReplenishmentOrderParam param,String condition);

    ResponseData generateReplenishmentOrder(String goodsNumber,String goodsCount);

    ResponseData generateWhReplenishmentOrder(String goodsNumber,String goodsCount);
}
